package gestion.horarios.model.jpa.entities;

import java.io.Serializable;
import javax.persistence.*;

import static javax.persistence.FetchType.EAGER;
import static javax.persistence.FetchType.LAZY;


/**
 * The persistent class for the sedeescenario database table.
 * 
 */
@Entity
@Table(name="sedeescenario")
public class SedeEscenario implements Serializable {
	private static final long serialVersionUID = 1L;
	private SedeEscenarioPK id;
	private Escenario escenario;
	private Sede sede;

    public SedeEscenario() {
    }


	@EmbeddedId
	public SedeEscenarioPK getId() {
		return this.id;
	}

	public void setId(SedeEscenarioPK id) {
		this.id = id;
	}
	

	//bi-directional many-to-one association to Escenario
    @ManyToOne
	@JoinColumn(name="EscenarioId", nullable=false, insertable=false, updatable=false)
	public Escenario getEscenario() {
		return this.escenario;
	}

	public void setEscenario(Escenario escenario) {
		this.escenario = escenario;
	}
	

	//bi-directional many-to-one association to Sede
    @ManyToOne
	@JoinColumn(name="SedeId", nullable=false)
	public Sede getSede() {
		return this.sede;
	}

	public void setSede(Sede sede) {
		this.sede = sede;
	}
	
}